<div id="posts-wrapper">
    <div class="post-item">
        <?php
            foreach($posts as $post) {
                echo "<h3>". $post->getTitle() ."</h3>";
                echo "<p>". $post->getContent() ."</p>";
                echo "<hr>". $post->getCommentCount()." Comment</p><hr>";
            }
        ?>
    </div>
</div>
<div id="open-content">
    <?php echo $message ;?>
</div>
